<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
  <database name="default" defaultIdMethod="none">
    <table name="AD_ISSUE">
      <column name="AD_ISSUE_ID" primaryKey="true" required="true" type="ID" size="10" autoIncrement="false"/>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
      <column name="CREATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="ID" size="10" autoIncrement="false"/>
      <column name="RELEASENO" primaryKey="false" required="true" type="CHAR" size="4" autoIncrement="false"/>
      <column name="VERSION" primaryKey="false" required="true" type="VARCHAR" size="40" autoIncrement="false"/>
      <column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="USERNAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="SUPPORTEMAIL" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="DBADDRESS" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="LOCAL_HOST" primaryKey="false" required="false" type="VARCHAR" size="120" autoIncrement="false"/>
      <column name="OPERATINGSYSTEMINFO" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="RELEASETAG" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="DATABASEINFO" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="JAVAINFO" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="REMOTE_ADDR" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="REMOTE_HOST" primaryKey="false" required="false" type="VARCHAR" size="120" autoIncrement="false"/>
      <column name="ISSUESUMMARY" primaryKey="false" required="true" type="VARCHAR" size="2000" autoIncrement="false"/>
      <column name="COMMENTS" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
      <column name="SOURCECLASSNAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="SOURCEMETHODNAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="LOGGERNAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false"/>
      <column name="LINENO" primaryKey="false" required="false" type="DECIMAL" size="10" default="0" autoIncrement="false"/>
      <column name="STACKTRACE" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
      <column name="ERRORTRACE" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
      <column name="RECORD_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="REQUESTDOCUMENTNO" primaryKey="false" required="false" type="VARCHAR" size="30" autoIncrement="false"/>
      <column name="A_ASSET_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="R_REQUEST_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="RESPONSETEXT" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false"/>
      <column name="PROCESSING" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
      <column name="PROCESSED" primaryKey="false" required="true" type="CHAR" size="1" default="N" autoIncrement="false"/>
      <column name="ISVANILLASYSTEM" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
      <column name="ISREPRODUCIBLE" primaryKey="false" required="false" type="CHAR" size="1" default="N" autoIncrement="false"/>
      <column name="R_ISSUEKNOWN_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="STATISTICSINFO" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="PROFILEINFO" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false"/>
      <column name="SYSTEMSTATUS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false"/>
      <column name="R_ISSUEPROJECT_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="R_ISSUEUSER_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="R_ISSUESYSTEM_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="ISSUESOURCE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false"/>
      <column name="AD_WINDOW_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="AD_PROCESS_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <column name="AD_FORM_ID" primaryKey="false" required="false" type="ID" size="10" autoIncrement="false"/>
      <foreign-key foreignTable="AD_FORM" name="ADFORM_ADISSUE" onDelete="setnull">
        <reference local="AD_FORM_ID" foreign="AD_FORM_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_PROCESS" name="ADPROCESS_ADISSUE" onDelete="setnull">
        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_WINDOW" name="ADWINDOW_ADISSUE" onDelete="setnull">
        <reference local="AD_WINDOW_ID" foreign="AD_WINDOW_ID"/>
      </foreign-key>
      <foreign-key foreignTable="A_ASSET" name="AASSET_ADISSUE" onDelete="setnull">
        <reference local="A_ASSET_ID" foreign="A_ASSET_ID"/>
      </foreign-key>
      <foreign-key foreignTable="R_ISSUEKNOWN" name="RKNOWNISSUE_ADISSUE" onDelete="none">
        <reference local="R_ISSUEKNOWN_ID" foreign="R_ISSUEKNOWN_ID"/>
      </foreign-key>
      <foreign-key foreignTable="R_ISSUEPROJECT" name="RISSUEPROJECT_ADISSUE" onDelete="none">
        <reference local="R_ISSUEPROJECT_ID" foreign="R_ISSUEPROJECT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="R_ISSUESYSTEM" name="RISSUESYSTEM_AD_ISSUE" onDelete="none">
        <reference local="R_ISSUESYSTEM_ID" foreign="R_ISSUESYSTEM_ID"/>
      </foreign-key>
      <foreign-key foreignTable="R_ISSUEUSER" name="RISSUEUSER_ADISSUE" onDelete="none">
        <reference local="R_ISSUEUSER_ID" foreign="R_ISSUEUSER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="R_REQUEST" name="RREQUEST_ADISSUE" onDelete="setnull">
        <reference local="R_REQUEST_ID" foreign="R_REQUEST_ID"/>
      </foreign-key>
      <check>
        <rule><![CDATA[IsActive in ('Y','N')]]></rule>
      </check>
      <check>
        <rule><![CDATA[Processed in ('Y','N')]]></rule>
      </check>
      <check>
        <rule><![CDATA[IsVanillaSystem in ('Y','N')]]></rule>
      </check>
      <check>
        <rule><![CDATA[IsReproducible in ('Y','N')]]></rule>
      </check>
    </table>
  </database>
